package cn.fuxue.hrms.service.impl;

import cn.fuxue.hrms.common.base.AbstractService;
import cn.fuxue.hrms.common.dto.DepartmentShow;
import cn.fuxue.hrms.common.entity.Department;
import cn.fuxue.hrms.mapper.DepartmentMapper;
import cn.fuxue.hrms.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl extends AbstractService<Department,Integer> implements DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    @Autowired
    @Override
    public void setBaseMapper() {
        super.setBaseMapper(departmentMapper);
    }

    @Override
    public List<DepartmentShow> find() {
        return departmentMapper.find();
    }

    @Override
    public List<Department> findId(){
        return departmentMapper.findId();
    }
}
